home *** CD-ROM | disk | FTP | other *** search
/ Spacewalker F97 / Spacewalker F97.iso / DRIVER / 13X / WINNT31 / OEMSETUP.INF < prev    next >
Encoding:
INI File  |  1995-01-05  |  11.1 KB  |  304 lines

  1. [Identification]
  2.     OptionType = VIDEO
  3. [MapOfOptions]
  4.     "InteGraphics IGA1680"       = "InteGraphics IGA1680 640x480x4x60"
  5. [MiniportDrivers]
  6.     iga1680   = !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_IGNORE, 11,  {vga,vga256}, 1 , "%SystemRoot%\System32\IoLogMsg.dll"                                       , 7
  7. [Identify]
  8.     read-syms Identification
  9.     set Status       = STATUS_SUCCESSFUL
  10.     set Identifier = $(OptionType)
  11.     set Media       = #("Source Media Descriptions", 1, 1)
  12.     Return $(Status) $(Identifier) $(Media)
  13. [ReturnOptions]
  14.     set Status          = STATUS_FAILED
  15.     set OptionList     = {}
  16.     set OptionTextList = {}
  17.     set LanguageList = ^(LanguagesSupported, 1)
  18.     Ifcontains(i) $($0) in $(LanguageList)
  19.     goto returnoptions
  20.     else
  21.     set Status = STATUS_NOLANGUAGE
  22.     goto finish_ReturnOptions
  23.     endif
  24. returnoptions = +
  25.     set OptionList     = ^(Options, 0)
  26.     set OptionTextList = ^(OptionsText$($0), 1)
  27.     set Status           = STATUS_SUCCESSFUL
  28. finish_ReturnOptions = +
  29.     Return $(Status) $(OptionList) $(OptionTextList)
  30. [MapToSupportedOption]
  31.     set Status = STATUS_FAILED
  32.     set MappedOption = $($0)
  33.     set OptionList = ^(MapOfOptions, 0)
  34.     ifcontains $($0) in $(OptionList)
  35.     set MappedOption = #(MapOfOptions, $($0), 1)
  36.     else
  37.     set MappedOption = "VGA"
  38.     endif
  39.     set Status = STATUS_SUCCESSFUL
  40.     Return $(Status) $(MappedOption)
  41. [ServicesEntry]
  42.     CurrentEntry = "" ? $(!LIBHANDLE) GetDevicemapValue Video \Device\Video0
  43. [InstallOption]
  44.     set Status         = STATUS_FAILED
  45.     set DrivesToFree = {}
  46.     set Option     = $($1)
  47.     set SrcDir     = $($2)
  48.     set AddCopy  = $($3)
  49.     set DoCopy     = $($4)
  50.     set DoConfig = $($5)
  51.     set LanguageList = ^(LanguagesSupported, 1)
  52.     Ifcontains(i) $($0) in $(LanguageList)
  53.     else
  54.     set Status = STATUS_NOLANGUAGE
  55.     goto finish_InstallOption
  56.     endif
  57.     read-syms Strings$($0)
  58.     set OptionList = ^(Options, 0)
  59.     ifcontains $(Option) in $(OptionList)
  60.     else
  61.     goto finish_InstallOption
  62.     endif
  63.     set OptionList = ""
  64.     set MiniportDriver      = #(Options, $(Option), 1)
  65.     set BitsPerPel      = #(Options, $(Option), 2)
  66.     set XResolution      = #(Options, $(Option), 3)
  67.     set YResolution      = #(Options, $(Option), 4)
  68.     set VRefresh      = #(Options, $(Option), 5)
  69.     set Interlaced      = #(Options, $(Option), 6)
  70.     set Type          = $(#(MiniportDrivers, $(MiniportDriver), 1))
  71.     set Group          =   #(MiniportDrivers, $(MiniportDriver), 2)
  72.     set ErrorControl      = $(#(MiniportDrivers, $(MiniportDriver), 3))
  73.     set Tag          =   #(MiniportDrivers, $(MiniportDriver), 4)
  74.     set InstalledDisplays =   #(MiniportDrivers, $(MiniportDriver), 5)
  75.     set VgaCompatible      =   #(MiniportDrivers, $(MiniportDriver), 6)
  76.     set EventMessageFile  =   #(MiniportDrivers, $(MiniportDriver), 7)
  77.     set TypesSupported      =   #(MiniportDrivers, $(MiniportDriver), 8)
  78.     read-syms ServicesEntry
  79.     detect    ServicesEntry
  80. installtheoption = +
  81.     ifstr(i) $(AddCopy) == "YES"
  82.     set DoActualCopy = NO
  83.     set FileToCheck = #(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  84.     LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\drivers\"$(FileToCheck)
  85.     ifstr(i) $(STATUS) == NO
  86.         set DoActualCopy = YES
  87.         goto addfiles
  88.     endif
  89.     ForListDo $(InstalledDisplays)
  90.         set FileToCheck = #(Files-DisplayDLLs, $($), 2)
  91.         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  92.         ifstr(i) $(STATUS) == NO
  93.         set DoActualCopy = YES
  94.         endif
  95.     EndForListDo
  96. addfiles = +
  97.     ifstr(i) $(DoActualCopy) == NO
  98.         shell "subroutn.inf" DriversExist $($0) $(String1)
  99.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  100.         Debug-Output "VIDEO.INF: shelling DriversExist failed"
  101.         goto finish_InstallOption
  102.         endif
  103.         ifstr(i) $($R0) == STATUS_CURRENT
  104.         else-ifstr(i) $($R0) == STATUS_NEW
  105.         set DoActualCopy = YES
  106.         else-ifstr(i) $($R0) == STATUS_USERCANCEL
  107.         Debug-Output "VIDEO.INF: User cancelled video installation"
  108.         goto finish_InstallOption
  109.         else
  110.         Debug-Output "VIDEO.INF: Error reported in DriversExist routine in SUBROUTN.INF"
  111.         goto finish_InstallOption
  112.         endif
  113.     endif
  114.     ifstr(i) $(DoActualCopy) == YES
  115.         shell "subroutn.inf" DoAskSourceEx $(SrcDir) $(String2)
  116.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  117.         Debug-Output "VIDEO.INF: shelling DoAskSourceEx failed"
  118.         goto finish_InstallOption
  119.         endif
  120.         ifstr(i) $($R0) == STATUS_SUCCESSFUL
  121.         set SrcDir = $($R1)
  122.         ifstr(i) $($R2) != ""
  123.             set DrivesToFree = >($(DrivesToFree), $($R2))
  124.         endif
  125.         else
  126.         Debug-Output "VIDEO.INF: User cancelled asking source."
  127.         goto finish_InstallOption
  128.         endif
  129.         install Install-AddCopyOption
  130.         ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  131.         Debug-Output "VIDEO.INF: Adding video files to copy list failed"
  132.         goto finish_InstallOption
  133.         endif
  134.     else
  135.         set DoCopy = NO
  136.     endif
  137.     endif
  138.     ifstr(i) $(DoCopy) == "YES"
  139.     read-syms ProgressCopy$($0)
  140.     install Install-DoCopyOption
  141.     ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  142.         Debug-Output "Copying files failed"
  143.         goto finish_InstallOption
  144.     else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  145.         set Status = STATUS_USERCANCEL
  146.         goto finish_InstallOption
  147.     endif
  148.     endif
  149.     ifstr(i) $(DoConfig) == "YES"
  150.     shell "registry.inf" CheckSetupModify
  151.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  152.         goto finish_InstallOption
  153.     endif
  154.     ifstr(i) $($R0) != STATUS_SUCCESSFUL
  155.         goto finish_InstallOption
  156.     endif
  157.     set ServiceNode   = $(MiniportDriver)
  158.     set ServiceBinary = %SystemRoot%\System32\drivers\#(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  159.     set ServicesValues   = { +
  160.         {Type,         0, $(!REG_VT_DWORD),      $(Type)           }, +
  161.         {Start,      0, $(!REG_VT_DWORD),      $(!SERVICE_SYSTEM_START) }, +
  162.         {Group,      0, $(!REG_VT_SZ),      $(Group)           }, +
  163.         {ErrorControl,     0, $(!REG_VT_DWORD),      $(ErrorControl)       }, +
  164.         {Tag,         0, $(!REG_VT_DWORD),      $(Tag)           }, +
  165.         {BinaryPathName, 0, $(!REG_VT_EXPAND_SZ), $(ServiceBinary)       }  +
  166.         }
  167.     set ParametersValues = { +
  168.         {InstalledDisplayDrivers,     0, $(!REG_VT_MULTI_SZ), $(InstalledDisplays) }, +
  169.         {VgaCompatible,           0, $(!REG_VT_DWORD),    $(VgaCompatible)       }, +
  170.         {DefaultSettings.BitsPerPel,  0, $(!REG_VT_DWORD),    $(BitsPerPel)       }, +
  171.         {DefaultSettings.XResolution, 0, $(!REG_VT_DWORD),    $(XResolution)       }, +
  172.         {DefaultSettings.YResolution, 0, $(!REG_VT_DWORD),    $(YResolution)       }  +
  173.         }
  174.     ifstr(i) $(VRefresh) != ""
  175.         set VRefreshValue = {DefaultSettings.VRefresh, 0, $(!REG_VT_DWORD), $(VRefresh)}
  176.         set ParametersValues = >($(ParametersValues), $(VRefreshValue))
  177.     endif
  178.     ifstr(i) $(Interlaced) != ""
  179.         set InterlacedValue = {DefaultSettings.Interlaced, 0, $(!REG_VT_DWORD), $(Interlaced)}
  180.         set ParametersValues = >($(ParametersValues), $(InterlacedValue))
  181.     endif
  182.     set DeviceValues     = {}
  183.     set EventLogValues   = { +
  184.         {EventMessageFile, 0, $(!REG_VT_EXPAND_SZ), $(EventMessageFile) }, +
  185.         {TypesSupported,   0, $(!REG_VT_DWORD),     $(TypesSupported)    }  +
  186.         }
  187.     shell "registry.inf"  MakeServicesEntry $(ServiceNode)      +
  188.                         $(ServicesValues)   +
  189.                         $(ParametersValues) +
  190.                         $(DeviceValues)     +
  191.                         $(EventLogValues)   +
  192.                         Device0
  193.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  194.         Debug-Output "Couldn't execute MakeServicesEntry in registry.inf"
  195.         goto finish_InstallOption
  196.     endif
  197.     ifstr(i) $($R0) != STATUS_SUCCESSFUL
  198.         Debug-Output "MakeServicesEntry failed for video"
  199.         goto finish_InstallOption
  200.     endif
  201.     ifstr(i) $(CurrentEntry) != $(MiniportDriver)
  202.         ifstr(i) $(CurrentEntry) != VGA
  203.         ifstr(i) $(CurrentEntry) != ""
  204.             shell "registry.inf" ModifyServicesEntry $(CurrentEntry) $(!SERVICE_DISABLED)
  205.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  206.             Debug-Output "Couldn't find DisableServicesEntry in registry.inf"
  207.             goto errorconfig
  208.             endif
  209.             ifstr(i) $($R0) != STATUS_SUCCESSFUL
  210.             Debug-Output "DisableServices entry failed"
  211.             endif
  212.         endif
  213.         endif
  214.     endif
  215.     goto configdone
  216. errorconfig = +
  217.     ifstr(i) $(CurrentEntry) != $(MiniportDriver)
  218.         shell "registry.inf" ModifyServicesEntry $(MiniportDriver) $(!SERVICE_DISABLED)
  219.         ifstr(i) $(CurrentEntry) != ""
  220.         shell "registry.inf" ModifyServicesEntry $(CurrentEntry) $(!SERVICE_SYSTEM_START)
  221.         endif
  222.     endif
  223.     goto finish_InstallOption
  224. configdone = +
  225.     endif
  226.     set Status = STATUS_SUCCESSFUL
  227. finish_InstallOption = +
  228.     ForListDo $(DrivesToFree)
  229.     LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  230.     EndForListDo
  231.     Return $(Status)
  232. [Install-AddCopyOption]
  233.     set STF_VITAL = ""
  234.     AddSectionKeyFileToCopyList   Files-DisplayMiniportDrivers     +
  235.                   $(MiniportDriver)         +
  236.                   $(SrcDir)             +
  237.                   $(!STF_WINDOWSSYSPATH)\drivers
  238.     ForListDo $(InstalledDisplays)
  239.     AddSectionKeyFileToCopyList   Files-DisplayDLLs      +
  240.                       $($)             +
  241.                       $(SrcDir)          +
  242.                       $(!STF_WINDOWSSYSPATH)
  243.     EndForListDo
  244.     exit
  245. [Install-DoCopyOption]
  246.     CopyFilesInCopyList
  247.     exit
  248. [Source Media Descriptions]
  249.     1  = "Windows NT Setup Disk #1"  , TAGFILE = disk1
  250.     2  = "Windows NT Setup CD-ROM Disk"  , TAGFILE = disk2
  251. [ProductType]
  252. STF_PRODUCT  = Winnt
  253. STF_PLATFORM = I386
  254. [Files-DisplayDLLs]
  255. ati = 2,ATI.DLL , SIZE=115200
  256. framebuf = 2,FRAMEBUF.DLL , SIZE=54784
  257. s3 = 2,S3.DLL , SIZE=147456
  258. vga = 2,VGA.DLL , SIZE=179200
  259. vga256 = 2,VGA256.DLL , SIZE=133632
  260. xga = 2,XGA.DLL , SIZE=66048
  261. [Files-DisplayMiniportDrivers]
  262. ati = 2,ATI.SYS , SIZE=63488
  263. cirrus = 2,CIRRUS.SYS , SIZE=34304
  264. dell_dgx = 2,DELL_DGX.SYS , SIZE=17408
  265. iga1680 = 2,IGA1680.SYS , SIZE=32256
  266. ncr77c22 = 2,NCR77C22.SYS , SIZE=33280
  267. qv = 2,QV.SYS , SIZE=47616
  268. s3 = 2,S3.SYS , SIZE=25600
  269. trident = 2,TRIDENT.SYS , SIZE=33280
  270. v7vram = 2,V7VRAM.SYS , SIZE=35328
  271. vga = 2,VGA.SYS , SIZE=29184
  272. wdvga = 2,WDVGA.SYS , SIZE=29696
  273. xga = 2,XGA.SYS , SIZE=26624
  274. [LanguagesSupported]
  275.     ENG
  276. [OptionsTextENG]
  277.     "IGS IGA1680 640x480x8x00"        =  "InteGraphics IGA1680 640x480 256 colors"
  278.     "IGS IGA1680 800x600x8x00"        =  "InteGraphics IGA1680 800x600 256 colors"
  279.     "IGS IGA1680 1024x768x8x00"       =  "InteGraphics IGA1680 1024x768 256 colors"
  280.     "IGS IGA1680 1024x768x8x00I"      =  "InteGraphics IGA1680 1024x768 256 colors, Interlaced"
  281. [Options]
  282.     "IGS IGA1680 640x480x8x00"        = iga1680,    8, 640,  480   , 0  , 0
  283.     "IGS IGA1680 800x600x8x00"        = iga1680,    8, 800,  600   , 0  , 0
  284.     "IGS IGA1680 1024x768x8x00"       = iga1680,    8, 1024, 768   , 0  , 0
  285.     "IGS IGA1680 1024x768x8x00I"      = iga1680,    8, 1024, 768   , 0  , 1
  286. [ProgressCopyENG]
  287.     ProCaption     = "Windows NT Setup"
  288.     ProCancel     = "Cancel"
  289.     ProCancelMsg = "Windows NT is not correcly installed.  Are you sure you want "+
  290.            "to cancel copying files?"
  291.     ProCancelCap = "Setup Message"
  292.     ProText1     = "Copying:"
  293.     ProText2     = "To:"
  294. [StringsENG]
  295.     String1 = "Display"
  296.     String2 = "Please enter the full path to the Windows NT Display "+
  297.           "driver files.  If you want to install files from the "+
  298.           "original Setup floppy disks, type a drive letter (such "+
  299.           "as A:) and Setup will prompt you for the correct disk.  "+
  300.           "Then choose Continue."
  301.  
  302.  
  303.  
  304.